const path = require('path');
const webpack = require('webpack');




module.exports = {
	context: process.cwd(),
	resolve: {
		extensions: ['.js', '.jsx', '.ts', '.json'],

	},
	entry: {
		library:[
			'react',
			"react-dom"
		]
	},
	output: {
		filename: "[name]_[chunkhash:8].dll.js",
		path: path.join(__dirname, 'build/library'),
		library: '[name]'
	},
	plugins: [
		new webpack.DllPlugin({
			name:"[name]_[hash]",
			path: path.join(__dirname, 'build/library/[name].json'),
		})
	]
}
